#ifndef __CONFIGRULEDLG_H__
#define __CONFIGRULEDLG_H__

#include <QtGui/QDialog>
#include "LuaFunctionEditer.h"

class QWidget;
class QString;
class QTreeWidget;
class QTreeWidgetItem;
class QLineEdit;
namespace BatchRename
{
	class ConfigRuleDlg : public QDialog
	{
		Q_OBJECT
	public:
		ConfigRuleDlg(QWidget* parent = NULL);
		~ConfigRuleDlg(void);

	public:
		bool ShowConfigDlg();
		QString ConfigFileNameResult() const;
		QString ConfigFileSuffixResult() const;

	private slots:
		void ItemDoubleClicked(QTreeWidgetItem* item, int column);
		void EditFunctionSlots(bool check);
		void SureSlots(bool check);
		void QuitSlots(bool check);

	private:
		void ReFlashFuncTree();

	private:
		QLineEdit*			m_FileNameRule;
		QLineEdit*			m_FileSuffixRule;
		QTreeWidget*		m_FunctionTree;

	private:
		LuaFunctionEditer	m_LuaEditer;
	};
}
#endif